package com.fz.us.oa.core.entity.com;

import com.fz.us.admin.company.entity.CompanyEntity;
import com.fz.us.admin.company.entity.User;

import javax.persistence.*;

/**
 * 常用模块
 */
@Entity
@Table(name="ec_commonmodel")
public class CommonModel extends CompanyEntity {
    private static final long serialVersionUID = 6924200470596837315L;
    /**
     * 对应的用户
     */
    private User user;
    /**
     * 模块键
     */
    private String key1;
    /**
     * 模块值
     */
    private String val1;

    @ManyToOne(fetch = FetchType.LAZY)
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getKey1() {
        return key1;
    }

    public void setKey1(String key1) {
        this.key1 = key1;
    }

    public String getVal1() {
        return val1;
    }

    public void setVal1(String val1) {
        this.val1 = val1;
    }
}
